//
//  YQCookieSyncManager.m
//  CusWebView
//
//  Created by yeqiang on 2024/2/20.
//

#import "YQCookieSyncManager.h"

@implementation YQCookieSyncManager

+ (instancetype)sharedWKCookieSyncManager {
    static YQCookieSyncManager *sharedInstance = nil;
    static dispatch_once_t predicate;
    dispatch_once(&predicate, ^{
        sharedInstance = [[self alloc] init];
    });
    return sharedInstance;
}

- (WKProcessPool *)processPool {
    if (!_processPool) {
        static dispatch_once_t predicate;
        dispatch_once(&predicate, ^{
            _processPool = [[WKProcessPool alloc] init];
        });
    }
    return _processPool;
}

@end
